﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bucarUsuarios.aspx.cs" MasterPageFile="~/wiki.Master"  Inherits="UI.bucarUsuarios" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID = "contentBuscarUsuario" runat="server" ContentPlaceHolderID="ContentPlaceHolder">
    <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>
<h2> Buscar Post New</h2>
<br />
    <table style="width: 100%">
        <tr>
            <td>
                Usuário:</td>
            <td style="width: 245px">
                <asp:TextBox ID="txtUsuario" runat="server" Width="190px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
        <table style="width: 100%">
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btPesquisa" runat="server" CssClass="botao" Text="Procurar" 
                    onclick="btPesquisa_Click" />
           </td>
        </tr>
    </table>
    <br />
    <asp:UpdateProgress ID="UpdateProgress" runat="server" 
        AssociatedUpdatePanelID="upPostNew" DisplayAfter="10">
        <ProgressTemplate>
            <img alt="" src="Images/carregando.gif" 
    style="width: 16px; height: 16px" />
            <asp:GridView ID="gvUsuario" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="idUsuario" 
                EmptyDataText="Nenhum usuário encontrado!" ForeColor="#333333" GridLines="None" 
                onrowdatabound="gvPostNew_RowDataBound" style="font-size: 10pt" Width="480px">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:TemplateField HeaderText="Usuário">
                        <ItemTemplate>
                            <%# Eval("data") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField Text="Seguir" />
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upPostNew" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btPesquisa" EventName="Click">
            </asp:AsyncPostBackTrigger>
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>

